const express = require('express');
const LocalInterface = require('../controller/localInterface');

const router = express.Router();

// Interface
router.get('/online/:hotelId', LocalInterface.sendToRemote);
router.get('/config-file/:hotelId', LocalInterface.sendToRemote);
router.post('/config-file/:hotelId', LocalInterface.sendToRemote);
router.post('/set-pause/:hotelId', LocalInterface.sendToRemote);
router.post('/reset/:hotelId', LocalInterface.sendToRemote);
router.get('/read-dir-file/:hotelId', LocalInterface.sendToRemote);
router.get('/version/:hotelId', LocalInterface.sendToRemote);
router.get('/get-data', LocalInterface.getData);
router.post('/set-data', LocalInterface.setData);

module.exports = router;
